import request from '@/utils/requset'

export const getHouse = (id) => {
  return request({
    method: 'get',
    url: 'houses/condition?id=' + id
  })
}
export const getHouseList = (id) => {
  return request({
    method: 'get',
    url: '/houses',
    params: {
      cityId: id,
      start: 1,
      end: 300
    }
  })
}
export const getHousesDetail = (id) => {
  return request({
    method: 'get',
    url: `/houses/${id}`
  })
}
